<?php
$this->breadcrumbs=array(
	Yii::t('product','Products')=>array('admin'),
); ?>

<h1><?php echo Yii::t('product','Manage Products'); ?></h1>

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'product-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'code',
		'name',
		array(
			'name'=>'category_id',
			'value'=>'$data->category->name'
		),
		array(
			'name'=>'price',
			'value'=>'Yii::app()->numberFormatter->formatCurrency($data->price,"VND")'
		),
		'description',
		/*
		'images',
		'status',
		'available_sizes',
		'create_time',
		'update_time',
		'deleted',
		*/
		array(
			'class'=>'bootstrap.widgets.TbButtonColumn',
		),
	),
)); ?>
